package Computer.Main;

public class ProgramCounter {
	private int nextAddress;
	
	public ProgramCounter() {
		nextAddress = 0;
	}
	
	public void increment() {
		nextAddress++;
	}
	
	public int getNextAddress() {
		return nextAddress;
	}
	
	public void setNextAddress(int nextAddress) {
		this.nextAddress = nextAddress;
	}
	
	public boolean hasNext() {
		return nextAddress >= 0;
	}
}
